package com.delivery.www.po;

import com.delivery.www.util.AnnotationUtils;

/**
 * 用户
 * @author 12970
 */
@AnnotationUtils.Table("user")
public class User {
    @AnnotationUtils.Field(columnName = "user_id")
    private Integer userId;
    @AnnotationUtils.Field(columnName = "user_name")
    private String userName;
    @AnnotationUtils.Field(columnName = "password")
    private String password;
    @AnnotationUtils.Field(columnName = "balance")
    private Float balance;
    @AnnotationUtils.Field(columnName = "email")
    private String email;
    @AnnotationUtils.Field(columnName = "identity")
    private Integer identity;

    public User() {
    }

    public User(Integer userId, String userName, String password, Float balance, String email, Integer identity) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.balance = balance;
        this.email = email;
        this.identity = identity;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Float getBalance() {
        return balance;
    }

    public void setBalance(Float balance) {
        this.balance = balance;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }
}
